package com.sos.core.game.events
{
	import com.sos.core.game.Game;
	import com.sos.core.game.GameEndCause;
	
	public class GameEndEvent extends GameEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _cause:GameEndCause;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function GameEndEvent(g:Game, gameEndCause:GameEndCause)
		{
			super(GameEvent.EVENT_GAME_END, g);
			// Init
			_cause = gameEndCause; 
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------

		public function get cause():GameEndCause
		{
			return _cause;
		}

	}
}